<!DOCTYPE html>
<html lang="en">
<head>
<title>What is the admin Memory tool?</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="sakai.memory" name="description">
<link href="../css/help.css" media="all" rel="stylesheet" type="text/css" charset="utf-8">
<link href="/library/webjars/fontawesome/4.7.0/css/font-awesome.min.css" media="screen" rel="stylesheet">
<link href="/library/skin/morpheus-default/tool.css" media="screen" rel="stylesheet" type="text/css" charset="utf-8">
<script src="/library/webjars/jquery/1.12.4/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/library/js/headscripts.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
    includeWebjarLibrary('featherlight');
    $(document).ready(function(){
      $("a.screensteps-image-zoom").featherlight({
        type: { image:true },
        closeOnClick: 'anywhere'
      }); 
    });   
</script>
</head>
<body>
  <div><div>
<div><h1 class="article-title">What is the admin Memory tool?</h1></div>
<div>



    <div class="step-instructions screensteps-textblock screensteps-wrapper--introduction screensteps-wrapper">
  <div id="text-content_C0AF663A-E6F6-42CD-A814-2EE53AA717C3" class="text-block-content">
    <p>The admin Memory tool allows administrators to view cache sizes in order to better optimize performance.</p>
<p>Sakai's default cache sizes and expiration settings are conservative and most likely need to be adjusted at large institutions.</p>
<p>All caches should be adjustable in Sakai 10.0+ with a simple modification to the sakai.properties file.</p>
<p>Adjust the caching of users especially if you use the JLDAP provider. This example will cache up to 50k users for up to half a day each:</p>
<ul>
<li>memory.org.sakaiproject.user.api.UserDirectoryService.callCache=timeToLiveSeconds=43400,timeToIdleSeconds=0,maxElementsInMemory=50000</li>
</ul>
<p>Adjust the realm/role group cache to retain items in the cache for two hours:</p>
<ul>
<li>memory.org.sakaiproject.authz.impl.DbAuthzGroupService.realmRoleGroupCache=timeToLiveSeconds=7200,maxElementsInMemory=0</li>
</ul>
<p>The user/site cache keeps track of the sites associated with the user:</p>
<ul>
<li>memory.org.sakaiproject.site.api.SiteService.userSiteCache=timeToLiveSeconds=86400,timeToIdleSeconds=0</li>
</ul>
<p>The security service cache retains information about permission requests (e.g., can user xxxx do asn.submit in /site/abc):</p>
<ul>
<li>memory.org.sakaiproject.authz.api.SecurityService.cache=timeToLiveSeconds=86400,timeToIdleSeconds=0</li>
</ul>
  </div>
</div>

      <div class="step screensteps-section screensteps-depth-1" id="to-access-this-tool-select-memory-from-the-tool-menu-in-the-administration-workspace">
    <h2 class="step-title screensteps-heading">To access this tool, select Memory from the Tool Menu in the Administration Workspace.</h2>
        <div class="image screensteps-image">
      <img src="https://media.screensteps.com/image_assets/assets/003/336/891/original/d54322a0-572d-4dea-8a74-2c5f9a4d45d4.png" alt="" height="104" width="176">
  </div>
 
  </div>


</div>
</div></div>
</body>
</html>
